module.exports = {
  // 服务器配置
  server: {
    port: process.env.PORT || 3000,
    host: '0.0.0.0'
  },

  // 数据源配置
  dataSources: {
    twitter: {
      enabled: true,
      apiKey: process.env.TWITTER_API_KEY || '',
      apiSecret: process.env.TWITTER_API_SECRET || '',
      bearerToken: process.env.TWITTER_BEARER_TOKEN || '',
      baseUrl: 'https://api.twitter.com/2'
    },
    binance: {
      enabled: true,
      baseUrl: 'https://api.binance.com/api/v3',
      apiKey: process.env.BINANCE_API_KEY || '',
      apiSecret: process.env.BINANCE_API_SECRET || ''
    },
    okx: {
      enabled: true,
      baseUrl: 'https://www.okx.com/api/v5',
      apiKey: process.env.OKX_API_KEY || '',
      apiSecret: process.env.OKX_API_SECRET || '',
      passphrase: process.env.OKX_PASSPHRASE || ''
    },
    geckoTerminal: {
      enabled: true,
      baseUrl: 'https://api.geckoterminal.com/api/v2'
    },
    coinGecko: {
      enabled: true,
      baseUrl: 'https://api.coingecko.com/api/v3',
      apiKey: process.env.COINGECKO_API_KEY || ''
    },
    gmgn: {
      enabled: true,
      baseUrl: 'https://gmgn.ai/api'
    },
    aveAi: {
      enabled: true,
      baseUrl: 'https://ave.ai/api'
    }
  },

  // 数据存储配置
  storage: {
    dataDir: './data',
    jsonFile: 'crypto_data.json',
    excelFile: 'crypto_data.xlsx',
    backupEnabled: true,
    maxBackups: 10
  },

  // 数据获取配置
  dataCollection: {
    interval: 5 * 60 * 1000, // 5分钟
    batchSize: 100,
    retryAttempts: 3,
    retryDelay: 1000
  },

  // 日志配置
  logging: {
    level: process.env.LOG_LEVEL || 'info',
    file: './logs/app.log',
    maxSize: '10m',
    maxFiles: 5
  }
};

